package Abstract;

public abstract class Shape {
    private Point position;
    public Shape(){

    }
    public Shape(Point position){
        this.position = position;
    }
    public abstract double area();
    public abstract boolean contains(Point p);
    public boolean container(int x,int y){
        return contains(new Point(x,y));
    }
    public Point getPosition(){
        return position;
    }
    public void setPosition(Point position){
        this.position = position;

    }
}
